home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / bbs / soda11.zip / GENRAN.REF < prev    next >
Text File  |  1997-06-26  |  11KB  |  530 lines

  1. ;general random stuff that is usually called from any major tavel route
  2. ;where roads are
  3.  
  4.  
  5. @#GENRAN
  6. @do `p20 random 9 1
  7.  
  8. @if `p20 is 1 then do
  9.  @begin
  10.  @run event1
  11.  @end
  12. @if `p20 is 2 then do
  13.   @begin
  14.   @run event2
  15.   @end
  16. @if `p20 is 3 then do
  17.   @begin
  18.   @run hunters in bounty.ref
  19.   @end
  20. @if `p20 is 4 then do
  21.   @begin
  22.   @run event4
  23.   @end
  24. @if `p20 is 5 then do
  25.   @begin
  26.   @run event5
  27.   @end
  28. @if `p20 is 6 then do
  29.   @begin
  30.   @run event6
  31.   @end
  32. @if `p20 is 7 then do
  33.   @begin
  34.   @run event7
  35.   @end
  36. @if `p20 is 8 then do
  37.   @begin
  38.   @run event6
  39.   ; yes, we want the run in with the Dragon Tooth guards to happen A LOT
  40.   @end
  41. @if `p20 is 9 then do
  42.   @begin
  43.   @run start in soda.ref
  44.   @end
  45.  
  46. @#EVENT7
  47. ;The travelers who speak of the dragon
  48. @do moveback
  49. @do write
  50. `r1
  51. @clearblock 21 21
  52. @do move 3 21
  53. @do write
  54. `r0`2Sounds like traveling folk.  Stop? [`0Y`2/`0N`2] :`x
  55. @do readspecial `s01 YN
  56. @if `s01 is Y then do
  57.   @begin
  58.   @show
  59. `r0`c  `r1  `%Group of Travelers  `r0
  60.  
  61.   `0"Hello!"  `2says the leader.  His groups seems happy and well travelled.
  62.   `$"Good day sir, how goes the travels?"  `2you ask.
  63.   `2You sit down and talk with the group a while.  They tell you how they're
  64.   on their way to FlagCity and then on to PortTown.  They've heard many a
  65.   rumor and story on their quests.  He also speaks of the dragon ...`k
  66.  
  67.   `0"There are those who believe ... that the `bRed Dragon`0 is still alive.
  68.   With the existance of the Dragon Tooth clan that possibility seems more
  69.   and more real.  If the Dragon is still alive, terror could very well
  70.   come to this land.  I suspect only the Dragon Tooth ... and maybe the
  71.   Koshi know the truth."  `%(YOU ARE FULLY RESTED!)
  72. `\`k  
  73. @do `p02 is `p03
  74. @drawmap
  75. @update
  76.  @do saybar
  77. `0"Have good travels!"
  78. @closescript
  79. @end
  80.  
  81.  @do saybar
  82. You hide in the bushes while they pass.
  83.  
  84. @#EVENT6
  85. ;Evil with the Dragon Tooth Clan
  86. @do moveback
  87. @do write
  88. `r1
  89. @clearblock 21 21
  90. @do move 3 21
  91. @do write
  92. `r0`2You hear a lot of footsteps coming.  Investigate? [`0Y`2/`0N`2] :`x
  93. @do readspecial `s01 YN
  94. @if `s01 is N then do
  95.   @begin
  96.   @do saybar
  97. You wait until the sounds are gone before advancing.
  98.   @closescript
  99.   @end
  100.  
  101.  
  102. @if `s01 is Y then do
  103.   @begin
  104.   @show
  105. `r0`c  `r1  `%Dragon Tooth Battalion  `r0
  106.  
  107.   `0"Halt lowly citizen!"  `2the lieutenant screams.  His men seem very
  108.   loyal and very shady.
  109.   `0"What's you business here?"  `2he asks.
  110.   
  111. @do write
  112. `x`x
  113. @do `v01 is 1
  114. @choice
  115. Listen to what they have to say
  116. -`t18 0 Insult them
  117. -`t18 0 <`p07 -9 Inquire about recruitment
  118. +`t18 0 Head to the castle
  119. Take off
  120. @if response is 1 then do
  121.   @begin
  122.   @pauseoff
  123.   @show
  124. `\`\  `0"The Dragon is still alive my friends, and only we know of the way
  125.   to stop him.  We may protect you, but for a price.  It costs us to fight
  126.   off the beast on a constant basis.  We need your money to make the towns
  127.   safe.  Give it to us or your friends will surely die!"  `2You stand not
  128.   very sure of this loser's speech.  Sounds like a classic scam.
  129.  
  130.   `$"I hate to ruin your fine speech sir, but I don't live near here."
  131.   `2you say.
  132.  
  133.   `0"The Dragon has wings, he will travel.  Soon your home may be next!"
  134.   `2he replys.
  135. `\`k
  136.   @end
  137. @if response is 2 then do
  138.   @begin
  139.   @show
  140. `\`\  `$"You guys suck, what a load of crap!!"  `2you yell.
  141.  
  142.   `0"You'll regret that s&boy."  `2says the lieutenant.
  143. `\`k
  144.   @do goto DBATTLE
  145.   @end
  146. @if response is 3 then do
  147.   @begin
  148.   @show
  149. `\`\  `$"Hey, I like being evil.  Could I join you guys and get a piece
  150.   of the action?"  `2you ask.
  151.  
  152.   `0"You are lowly, but not so lowly that you can't be trained.  Yes ...
  153.   now I think I see a little potential in you s&boy.  You could be
  154.   trained to serve us.  Come, to our castle where you may learn more about
  155.   yourself in our eyes."
  156. `\`k
  157.   @loadmap 705
  158.   @do map is 705
  159.   @do x is 27
  160.   @do y is 11
  161.   @update
  162.   @drawmap
  163.   @closescript
  164.   @end
  165. @if response is 4 then do
  166.   @begin
  167.   @show
  168. `\`\  `$"My masters, I must see the gatekeeper and ask him of my progress."
  169.   `2you say.
  170.  
  171.   `0"It shall be done ..."
  172. `\`k
  173.   @loadmap 705
  174.   @do map is 705
  175.   @do x is 27
  176.   @do y is 11
  177.   @update
  178.   @drawmap
  179.   @closescript
  180.   @end
  181. @drawmap
  182. @update
  183. @if bitcheck `t18 0 0 then do
  184.  @begin
  185.  @do saybar
  186. `0"We'll meet again!"
  187.  @end
  188.  
  189. @#DBATTLE
  190. @fight
  191. ;name
  192. Dragon Tooth Battalion
  193. ;string said when you see him
  194. They suddenly charge you, so much for protection.
  195. ;power move kill string
  196. `$"Save your own ass!!"  `2you shout.
  197. ;sex - 1 is male, 2 is female, 3 is it
  198. 3
  199. ;weapon and strength for the weapon, up to 5
  200. charges you|100
  201. surrounds and beats you|125
  202. practice with their swords on you|150
  203. attempt to trample you|97
  204. NONE|NONE
  205. ;defense
  206. 40
  207. ;gold reward
  208. 1400
  209. ;experience
  210. 210
  211. ;hit points
  212. 700
  213. ;if win: ref file|name or NONE
  214. NONE|NONE
  215. ;if lose: ref file|name or NONE
  216. GAMETXT.REF|DIE
  217. ;if runs: ref file|name or NONE
  218. NONE|NONE
  219. @drawmap
  220. @update
  221.  
  222. @#EVENT5
  223. ;Injured person
  224. @do moveback
  225. @do write
  226. `r1
  227. @clearblock 21 21
  228. @do move 3 21
  229. @do write
  230. `r0`2You hear an injured person nearby.  Investigate? [`0Y`2/`0N`2] :`x
  231. @do readspecial `s01 YN
  232.  
  233. @if `s01 is Y then do
  234.   @begin
  235.   @show
  236. `r0`c  `r1  `%Aid a fellow traveler  `r0
  237.  
  238.   `0"Please help me!" `2the injured man screams.  His leg seems to have
  239.   taken quite a blow.
  240.  
  241. @do write
  242. `x`x
  243. @do `v01 is 1
  244. @choice
  245. Help the man out
  246. Beat him and take his money
  247. Leave
  248. @if response is 1 then do
  249.   @begin
  250.   @do `p07 + 1
  251.   @show
  252. `\`\  `2You help the man, and with the first aid are able to get him on his
  253.   way to a city where he can further heal.
  254.  
  255.   `bYOUR ALIGNMENT GOES UP BY ONE!`b
  256. `\`k
  257. @drawmap
  258. @update
  259.   @closescript
  260.   @end
  261. @if response is 2 then do
  262.   @begin
  263.   @do `p07 - 2
  264.   @do `p20 random 1300 221
  265.   @do money + `p20
  266.   @show
  267. `\`\  `$"Sure I'll help you .. die!"  `2You slam him with your s&weapon, and
  268.   after he falls unconscious you raid his purse.
  269.  
  270.   `2You find `$`p20 `2gold!
  271.  
  272.   `bYOUR ALIGNMENT GOES DOWN BY TWO!`0
  273. `\`k
  274. @drawmap
  275. @update
  276.   @closescript
  277.   @end
  278.  @end
  279. @do saybar
  280. You are much too busy to help the man.
  281.  
  282. @#4run
  283. @drawmap
  284. @update
  285. @do quebar
  286. You run... she'll have to fend for herself.
  287.  
  288. @#4win
  289. @drawmap
  290. @update
  291. @do `p07 + 1
  292. @do quebar
  293. You saved her!  Alignment goes up by one.
  294.  
  295. @#event4
  296. ;if clean mode, find another event to run, this one isn't suitable...
  297. @if `v06 is 1 then goto genran
  298. @do moveback
  299. @do write
  300. `r1
  301. @clearblock 21 21
  302. @do move 3 21
  303. @do write
  304. `r0`2A woman is being raped by two men nearby.  Interrupt them? [`0Y`2/`0N`2] :`x
  305. @do readspecial `s01 YN
  306.  
  307. @if `s01 is Y then do
  308.   @begin
  309.   @show
  310. `r0`c  `r1  Violation or a right, you decide  `r0
  311.  
  312.   `0"Please help me!" `2the woman screams.  The two men are wearing
  313.   Dragon Tooth armour... they also seem to be having quite the good time.
  314.  
  315. @do write
  316. `x`x
  317. @do `v01 is 1
  318. @choice
  319. Help the woman and kill the men
  320. Join in the fun
  321. Leave the encounter
  322. @if responce is 2 then do
  323.   @begin
  324. @drawmap
  325. @update
  326. @do `p07 - 1
  327. @do quebar
  328. A few hours later you are finished!  Yeah!  Alignment goes down by one.
  329.   @closescript
  330.   @end
  331. @if responce is 1 then do
  332.   @begin
  333.   @fight
  334. ;name
  335. The Guards
  336. ;string said when you see him
  337. `0"Kill that s&boy!  s&he saw us" `2they yell!
  338. ;power move kill string
  339. You strike a blow for justice this day!
  340. ;sex - 1 is male, 2 is female, 3 is it
  341. 1
  342. ;weapon and strength for the weapon, up to 5
  343. sock you|45
  344. clothesline you|52
  345. laugh as one trips you for|36
  346. NONE|NONE
  347. NONE|NONE
  348. ;defense
  349. 15
  350. ;gold reward
  351. 89
  352. ;experience
  353. 54
  354. ;hit points
  355. 136
  356. ;if win: ref file|name or NONE
  357. GENRAN.REF|4WIN
  358. ;if lose: ref file|name or NONE
  359. GAMETXT.REF|DIE
  360. ;if runs: ref file|name or NONE
  361. GENRAN.REF|4RUN
  362.   @end
  363. @closescript
  364. @end
  365.  
  366. @do saybar
  367. Screw it, why be a hero?
  368.  
  369. @#event2
  370. @do moveback
  371. @do write
  372. `r1
  373. @clearblock 21 21
  374. @do move 3 21
  375. @do write
  376. `r0  `2A dark robed priest approaches.  Speak with him? [`0Y`2/`0N`2] :`x
  377. @do readspecial `s01 YN
  378.  
  379. @if `s01 is Y then do
  380.   @begin
  381.   @label ev1
  382.   @show
  383. `r0`c  `r1  A deal, perhaps?  `r0
  384.  
  385.   `0"Greetings fellow traveler.  Would you be interested in a traveling
  386.   potion for `$$500`0?" `2the priest asks.
  387.  
  388. @do write
  389. `x`x
  390. @do `v01 is 1
  391. @choice
  392. Exactly how does it work, strange dark robed priest?
  393. >&money 499 Yes, I'll take it!
  394. >&money 499 No thanks.
  395. <&money 500 I can't afford it.
  396. @if response is 1 then do
  397.   @begin
  398.   @show
  399. `r0`c  `r1  How it works  `r0
  400.  
  401.   `0"It's really very simple young s&man, first you drink it.  Then you
  402.   wait.  You will be randomly teleported to one of ten various places."
  403.  
  404.   `$"What if I don't like where I am?"
  405.  
  406. `k  `0"Then you're pretty much screwed, aren't you," `2he laughs.
  407.  
  408.   `$"Hey!  A priest isn't supposed to talk like that!" `2you accuse.
  409.  
  410. `k  `0"We're also not supposed to sell illegal drugs, what's your point?"
  411.  
  412. `k
  413.   @do goto ev1
  414.   @end
  415.  @if response is 2 then do
  416.    @begin
  417.    @show
  418. `\`\  `0"Great doing business with you," `2he smiles as he hands you a
  419.   funny looking vial.
  420. `\`k
  421.    @drawmap
  422.    @update
  423.    @do `i50 + 1
  424.    @do money - 500
  425.    @closescript
  426.    @end
  427.   
  428.  
  429.  
  430.  @if response is 3 then do
  431.    @begin
  432.    @show
  433. `\`\  `0"Maybe next time, friend," `2he smiles.
  434. `\`k
  435.    @drawmap
  436.    @update
  437.    @closescript
  438.    @end
  439.  
  440.  
  441.  @if response is 4 then do
  442.    @begin
  443.    @show
  444. `\`\  `0"Maybe next time, friend," `2he smiles.
  445. `\`k
  446.    @drawmap
  447.    @update
  448.    @closescript
  449.    @end
  450.  
  451.  
  452.   @end
  453. @do saybar
  454. You move to the side to let him pass.
  455.  
  456. @#event1
  457. @do moveback
  458. @do write
  459. `r1
  460. @clearblock 21 21
  461. @do move 3 21
  462. @do write
  463. `r0  `2A hooded figure approaches.  Speak with him? [`0Y`2/`0N`2] :`x
  464. @do readspecial `s01 YN
  465.  
  466. @if `s01 is Y then do
  467.   @begin
  468.   @busy
  469.   @do `p20 random 4 1
  470.   @if `p20 is 1 then `s10 is `+22
  471.   @if `p20 is 2 then `s10 is `+23
  472.   @if `p20 is 3 then `s10 is `+24
  473.   @if `p20 is 4 then `s10 is `+25
  474.  
  475.   @show
  476. `r0`c  `r1  Dark Trading `r0
  477.  
  478.   `0"Greetings, stranger.  I have a very magical item called a `%`s10
  479.   `0for sale.. would you like to buy it for `$$100`0?"
  480.   @do write
  481. `\`x`x
  482.   @do `v01 is 1
  483.   @choice
  484. >&money 99 Sure, I'll take it
  485. >&money 99 I don't deal with your type.
  486. <&money 100 Sorry, I can't afford that.
  487.   @if response is 1 then do
  488.     @begin
  489.   @if `p20 is 1 then `i22 + 1
  490.   @if `p20 is 2 then `i23 + 1
  491.   @if `p20 is 3 then `i24 + 1
  492.   @if `p20 is 4 then `i25 + 1
  493.     @do money - 100
  494.   @show
  495. `\`\  `0"Nice doing business with you," `2the dark trader laughs evilly as
  496.   he hands you the `%`s10`2.
  497. `\`k
  498.     @drawmap
  499.     @update
  500.     @closescript
  501.     @end
  502.  
  503.   @if response is 2 then do
  504.    @begin
  505.    @show
  506. `\`\  `0"You are making a mistake.." `2the dark trader grunts as he leaves.
  507. `\`k
  508.    @drawmap
  509.    @update
  510.    @closescript
  511.    @end
  512.  
  513.    @show
  514. `\`\  `0"Maybe next time.." `2the dark trader grunts as he leaves.
  515. `\`k
  516.    @drawmap
  517.    @update
  518.   @closescript
  519.  
  520.  @end
  521.  
  522. @do saybar
  523. You move to the side to let him pass.
  524.  
  525.  
  526.  
  527.  
  528.  
  529. @#done
  530.